﻿using Microsoft.Extensions.DependencyInjection;

namespace Service
{
    public class ServiceAttribute : Attribute
    {
        public ServiceLifetime LifeTime { get; set; }
        public ServiceAttribute(ServiceLifetime serviceLifeTime = ServiceLifetime.Scoped)
        {
            LifeTime = serviceLifeTime;
        }
    }
}
